# -*- coding: utf-8 -*-

from django.contrib import admin
from onecall.kladr.models import *


class AbbreviationAdmin(admin.ModelAdmin):
    list_per_page = 20
admin.site.register(Abbreviation, AbbreviationAdmin)

class StatusAdmin(admin.ModelAdmin):
    list_per_page = 20
admin.site.register(Status, StatusAdmin)

class AddressAdmin(admin.ModelAdmin):
    list_display = ('id', 'full_name', 'zip_code', 'gnimb', 'uno', 'ocatd')
    raw_id_fields = ('parent',)
    list_per_page = 20
    search_fields = ('name',)
admin.site.register(Address, AddressAdmin)

